<template>
	<view class="content">
		<view class="banner">
			<swiper class="banner-swiper" autoplay="true">
				<swiper-item><image class="banner-item-image" src="../../static/images/index/banner1.png" mode="aspectFit"></image></swiper-item>
				<swiper-item><image class="banner-item-image" src="../../static/images/index/banner1.png" mode="aspectFit"></image></swiper-item>
				<swiper-item><image class="banner-item-image" src="../../static/images/index/banner1.png" mode="aspectFit"></image></swiper-item>
			</swiper>
		</view>

		<view class="menu-group">
			<view class="menu-item" @click="openHot()">
				<image class="menu-item-image" src="../../static/images/icon/loupan_icon.png"></image>
				<text class="menu-item-text">热改楼盘</text>
			</view>
			<view class="menu-item" @click="openBag()">
				<image class="menu-item-image" src="../../static/images/icon/linbao_icon.png"></image>
				<text class="menu-item-text">拎包入住</text>
			</view>
			<view class="menu-item">
				<image class="menu-item-image" src="../../static/images/icon/gongdi_icon.png"></image>
				<text class="menu-item-text">工作实景</text>
			</view>
			<view class="menu-item">
				<image class="menu-item-image" src="../../static/images/icon/baojie_icon.png"></image>
				<text class="menu-item-text">保洁阿姨</text>
			</view>
		</view>

		<view class="group">
			<view class="header-content">
				<view class="header-left">
					<view class="line"></view>
					<view class="header-title">热改楼盘</view>
				</view>
				<view class="header-more" @click="openHot()">更多</view>
			</view>
			<view class="list">
				<view class="item">
					<image class="item-image" src="../../static/images/index/build1.png"></image>
					<view class="item-mark">
						<text class="item-title">天和尚上海</text>
						<text class="item-info">150m²/北欧风</text>
					</view>
				</view>
				<view class="item">
					<image class="item-image" src="../../static/images/index/build2.png"></image>
					<view class="item-mark">
						<text class="item-title">汤臣一品</text>
						<text class="item-info">130m²/欧美风</text>
					</view>
				</view>
				<view class="item">
					<image class="item-image" src="../../static/images/index/build1.png"></image>
					<view class="item-mark">
						<text class="item-title">静安新城</text>
						<text class="item-info">123m²/地中海</text>
					</view>
				</view>
			</view>
		</view>

		<view class="group">
			<view class="header-content">
				<view class="header-left">
					<view class="line"></view>
					<view class="header-title">拎包入住</view>
				</view>
				<view class="header-more" @click="openBag()">更多</view>
			</view>
			<view class="list">
				<view class="item">
					<image class="item-image" src="../../static/images/index/build1.png"></image>
					<view class="item-mark">
						<text class="item-title">某某某某某某套餐</text>
						<text class="item-info">150-180m²</text>
						<text class="item-info">套餐具体套餐具体套餐具体套餐具体套 餐具体</text>
					</view>
				</view>
				<view class="item">
					<image class="item-image" src="../../static/images/index/build2.png"></image>
					<view class="item-mark">
						<text class="item-title">某某某某某某套餐</text>
						<text class="item-info">150-180m²</text>
						<text class="item-info">套餐具体套餐具体套餐具体套餐具体套 餐具体</text>
					</view>
				</view>
				<view class="item">
					<image class="item-image" src="../../static/images/index/build1.png"></image>
					<view class="item-mark">
						<text class="item-title">某某某某某某套餐</text>
						<text class="item-info">150-180m²</text>
						<text class="item-info">套餐具体套餐具体套餐具体套餐具体套 餐具体</text>
					</view>
				</view>
			</view>
		</view>

		<view class="group">
			<view class="header-content">
				<view class="header-left">
					<view class="line"></view>
					<view class="header-title">工地实景</view>
				</view>
				<view class="header-more">更多</view>
			</view>
			<view class="list">
				<view class="work-item">
					<image class="work-item-image" src="../../static/images/common/loupan2.png"></image>
					<view class="work-item-mark"><text class="work-item-title">天和尚上海</text></view>
				</view>
				<view class="work-item">
					<image class="work-item-image" src="../../static/images/common/loupan2.png"></image>
					<view class="work-item-mark"><text class="work-item-title">天和尚上海</text></view>
				</view>
				<view class="work-item">
					<image class="work-item-image" src="../../static/images/common/loupan2.png"></image>
					<view class="work-item-mark"><text class="work-item-title">天和尚上海</text></view>
				</view>
			</view>
		</view>

		<image class="help" src="../../static/images/index/kefu.png"></image>
	</view>
</template>
<script>
export default {
	data() {
		return { title: 'Hello 何志强-202165110363' };
	},
	onLoad() {},
	methods: {
		openHot() {
			this.$parent.openHot();
			// uni.navigateTo({
			// 	url: '/pages/hot/index'
			// });
		},
		openBag() {
			this.$parent.openBag();
			// uni.navigateTo({
			// 	url: '/pages/bag/index'
			// });
		}
	}
};
</script>
<style>
page {
	background-color: #f5f5f5;
}
.content {
	width: 100vw;
	height: 100vh;
	box-sizing: border-box;
}
.banner{
	width: 100%;
}
.banner-swiper {
	box-sizing: border-box;
	width: 100%;
	height: 450rpx;
}
.banner-item-image {
	width: 100%;
	height: 100%;
}
.menu-group {
	box-sizing: border-box;
	width: 100%;
	display: flex;
	flex-direction: row;
	margin-top: 40rpx;
	margin-bottom: 40rpx;
	padding-left: 52rpx;
	padding-right: 52rpx;
	justify-content: space-between;
}
.menu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.menu-item-image {
	width: 80rpx;
	height: 80rpx;
}
.menu-item-text {
	font-family: PingFang SC, PingFang SC-Bold;
	width: 96rpx;
	height: 34rpx;
	color: #333333;
	font-size: 24rpx;
	font-weight: 500;
}
.line {
	width: 8rpx;
	height: 30rpx;
	background: #3d9c36;
}
.group {
	width: 100%;
	background-color: white;
	padding: 28rpx 0;
	margin-bottom: 40rpx;
}
.header-content {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	padding: 0 40rpx;
	justify-content: space-between;
	margin-bottom: 20rpx;
}
.header-left {
	height: 20rpx;
	display: flex;
	align-items: center;
}
.header-title {
	font-family: PingFang SC, PingFang SC-Bold;
	color: #333333;
	font-size: 32rpx;
	font-weight: 700;
	margin-left: 20rpx;
}
.header-more {
	font-family: PingFang SC, PingFang SC-Bold;
	color: #333333;
	font-size: 24rpx;
	font-weight: 500;
}
.header-more::after {
	content: '';
	width: 22rpx;
	height: 22rpx;
	display: inline-block;
	background-image: url('../../static/images/icon/right_icon.png');
	background-size: 100% 100%;
	margin-left: 10.76rpx;
}
.list {
	display: flex;
	overflow-x: scroll;
}
.list :last-child {
	margin-right: 48rpx;
}
.item {
	width: 382rpx;
	height: 510rpx;
	position: relative;
	margin-left: 48rpx;
}
.item-image {
	width: 382rpx;
	height: 100%;
	border-radius: 0rpx 0rpx 16rpx 16rpx;
}
.item-mark {
	box-sizing: border-box;
	position: absolute;
	left: 0px;
	bottom: 0px;
	width: 382rpx;
	display: flex;
	flex-direction: column;
	padding: 24rpx 24rpx;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 0rpx 0rpx 16rpx 16rpx;
}
.item-title {
	font-size: 24rpx;
	font-weight: 400;
	color: #ffffff;
	line-height: 24rpx;
}

.work-item-title {
	font-family: PingFang SC, PingFang SC-Bold;
	width: 100%;
	height: 100%;
	font-size: 24rpx;
	font-weight: 400;
	color: #ffffff;
	line-height: 24rpx;
	text-align: center;
}
.item-info {
	margin-top: 12rpx;
	opacity: 0.8;
	font-size: 20rpx;
	font-weight: 500;
	color: #ffffff;
	line-height: 28rpx;
}
.work-item-image {
	width: 520rpx;
	height: 100%;
	border-radius: 0rpx 0rpx 16rpx 16rpx;
}
.work-item {
	width: 520rpx;
	height: 312rpx;
	position: relative;
	margin-left: 48rpx;
}
.work-item-mark {
	box-sizing: border-box;
	position: absolute;
	left: 0px;
	bottom: 0px;
	width: 520rpx;
	display: flex;
	flex-direction: column;
	padding: 24rpx 24rpx;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 0rpx 0rpx 16rpx 16rpx;
}
::-webkit-scrollbar {
	overflow-x: hidden;
}
.help {
	z-index: 333;
	position: fixed;
	right: 20rpx;
	bottom: 20rpx;
	width: 182rpx;
	height: 221rpx;
}
</style>
